/**
 * Copyright &copy; 2016-2017 <a href="https://www.lczyfz.com">联创智云</a> All rights reserved.
 */
package com.lczyfz.campusinfo.modules.user.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lczyfz.campusinfo.common.persistence.Page;
import com.lczyfz.campusinfo.common.service.CrudService;
import com.lczyfz.campusinfo.modules.user.entity.CampusinfoGroup;
import com.lczyfz.campusinfo.modules.user.dao.CampusinfoGroupDao;

/**
 * 组别管理Service
 * @author 陈维乾
 * @version 2018-03-31
 */
@Service
@Transactional(readOnly = true)
public class CampusinfoGroupService extends CrudService<CampusinfoGroupDao, CampusinfoGroup> {

	@Autowired
	private CampusinfoGroupDao campusinfoGroupDao;

	
	public CampusinfoGroup get(String id) {
		return super.get(id);
	}
	
	public List<CampusinfoGroup> findList(CampusinfoGroup campusinfoGroup) {
		return super.findList(campusinfoGroup);
	}
	
	public Page<CampusinfoGroup> findPage(Page<CampusinfoGroup> page, CampusinfoGroup campusinfoGroup) {
		return super.findPage(page, campusinfoGroup);
	}
	
	@Transactional(readOnly = false)
	public void save(CampusinfoGroup campusinfoGroup) {
		super.save(campusinfoGroup);
	}
	
	@Transactional(readOnly = false)
	public void delete(CampusinfoGroup campusinfoGroup) {
		super.delete(campusinfoGroup);
	}
	
	public List<CampusinfoGroup> findAllList(CampusinfoGroup campusinfoGroup){
		return campusinfoGroupDao.findAllList(campusinfoGroup);
	}

	
}